package org.example.javadt.entity;

import java.sql.Date;

public class comments {



        private String comment_id;
        private String post_id;
        private String user_id;
        private String content;
        private String platform;
        private Date timestamp;
        private int like_count;

//    存储数据：
//
//    comment_id：评论唯一标识
//    post_id：评论所属帖子 ID（关联 posts 表）
//    user_id：评论用户 ID（关联 users 表）
//    content：评论内容
//    platform：评论发布平台
//    timestamp：评论时间
//    like_count：评论点赞数
//
//    用途：
//    存储所有帖子下的评论信息，支持评论展示和互动统计。


        public String getComment_id() {
                return comment_id;
        }

        public void setComment_id(String comment_id) {
                this.comment_id = comment_id;
        }

        public String getPost_id() {
                return post_id;
        }

        public void setPost_id(String post_id) {
                this.post_id = post_id;
        }

        public String getUser_id() {
                return user_id;
        }

        public void setUser_id(String user_id) {
                this.user_id = user_id;
        }

        public String getContent() {
                return content;
        }

        public void setContent(String content) {
                this.content = content;
        }

        public String getPlatform() {
                return platform;
        }

        public void setPlatform(String platform) {
                this.platform = platform;
        }

        public Date getTimestamp() {
                return timestamp;
        }

        public void setTimestamp(Date timestamp) {
                this.timestamp = timestamp;
        }

        public int getLike_count() {
                return like_count;
        }

        public void setLike_count(int like_count) {
                this.like_count = like_count;
        }

        public comments() {
        }

        public comments(String comment_id, String post_id, String user_id, String content, String platform, Date timestamp, int like_count) {
                this.comment_id = comment_id;
                this.post_id = post_id;
                this.user_id = user_id;
                this.content = content;
                this.platform = platform;
                this.timestamp = timestamp;
                this.like_count = like_count;
        }

        @Override
        public String toString() {
                return "comments{" +
                        "comment_id='" + comment_id + '\'' +
                        ", post_id='" + post_id + '\'' +
                        ", user_id='" + user_id + '\'' +
                        ", content='" + content + '\'' +
                        ", platform='" + platform + '\'' +
                        ", timestamp=" + timestamp +
                        ", like_count=" + like_count +
                        '}';
        }
}
